package com.nari.ruist.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nari.ruist.mapper.RstIntypeMapper;
import com.nari.ruist.domain.RstIntype;
import com.nari.ruist.service.IRstIntypeService;

/**
 * 接口分类 Service业务层处理
 *
 * @author nari
 * @date 2021-04-02
 */
@Service
public class RstIntypeServiceImpl implements IRstIntypeService {
    @Autowired
    private RstIntypeMapper rstIntypeMapper;

    /**
     * 查询接口分类
     *
     * @param id 接口分类 ID
     * @return 接口分类
     */
    @Override
    public RstIntype selectRstIntypeById(String id) {
        return rstIntypeMapper.selectRstIntypeById(id);
    }

    /**
     * 查询接口分类 列表
     *
     * @param rstIntype 接口分类
     * @return 接口分类
     */
    @Override
    public List<RstIntype> selectRstIntypeList(RstIntype rstIntype) {
        return rstIntypeMapper.selectRstIntypeList(rstIntype);
    }

    /**
     * 新增接口分类
     *
     * @param rstIntype 接口分类
     * @return 结果
     */
    @Override
    public int insertRstIntype(RstIntype rstIntype) {
        return rstIntypeMapper.insertRstIntype(rstIntype);
    }

    /**
     * 修改接口分类
     *
     * @param rstIntype 接口分类
     * @return 结果
     */
    @Override
    public int updateRstIntype(RstIntype rstIntype) {
        return rstIntypeMapper.updateRstIntype(rstIntype);
    }

    /**
     * 批量删除接口分类
     *
     * @param ids 需要删除的接口分类 ID
     * @return 结果
     */
    @Override
    public int deleteRstIntypeByIds(String[] ids) {
        return rstIntypeMapper.deleteRstIntypeByIds(ids);
    }

    /**
     * 删除接口分类 信息
     *
     * @param id 接口分类 ID
     * @return 结果
     */
    @Override
    public int deleteRstIntypeById(String id) {
        return rstIntypeMapper.deleteRstIntypeById(id);
    }
}
